<%@ page language="java" import="java.lang.StringBuffer,java.util.*"
	contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="header.jsp"></jsp:include>
<div id="wrapper">
	<div id="inner" class="clearfix">
		<jsp:include page="left.jsp"></jsp:include>
		<div id="content">
			<p class="breadcrumb">
				<a href="student_login.jsp"
					title="Return to the home page">Home</a> &gt; 教师列表
			</p>

			<h2 class="smaller">
				选题列表
			</h2>

			<table border="0" cellpadding="0" cellspacing="0" width="740"
				id="glossary">

				<tr>
					<td valign="top" width="150">
						<strong>老师姓名</strong>
					</td>
					<td valign="top" width="150">
						<strong>职称</strong>
					</td>
					<td valign="top" width="150">
						<strong>学历</strong>
					</td>
					<td valign="top" width="150">
						<strong>可指导人数</strong>
					</td>
					<td valign="top" width="100">
						<strong>操作</strong>
					</td>
				</tr>
				<c:forEach items="${page.pageResult}" var="teacher">
					<tr>
						<td valign="top" width="150">
							<strong>${teacher.name}</strong>
						</td>
						<td valign="top" width="150">
							${teacher.title}
						</td>
						<td valign="top" width="150">
							${teacher.degree}
						</td>
						<td valign="top" width="150">
							${teacher.studentCount}
						</td>
						<td valign="top" width="100">
							<a href="teacher_info.action?id=${teacher.id}">详情</a>|
							<c:choose>
								<c:when test="${sessionScope.user.teacher.id > 0 }">
									<a
										href="#" title="你已经选过指导老师!" class="tippopup">选择</a>
								</c:when>
								<c:when test="${teacher.studentCount < 1 }">
									<a
										href="#" title="指导人数已经选完!" class="tippopup">选择</a>
								</c:when>
								<c:otherwise>
									<a
										href="student_selectTeacher.action?teacher_id=${teacher.id }">选择</a>
								</c:otherwise>
							</c:choose>

						</td>
					</tr>
				</c:forEach>
				<tr>
					<td valign="top" align="center" colspan="5" class="page">
						${page.pageInfo}
					</td>
				</tr>
			</table>

			<div id="what-top"></div>




		</div>
	</div>
</div>
<jsp:include page="footer.jsp"></jsp:include>